home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.sco < prev    next >
Makefile  |  1996-03-14  |  2KB  |  90 lines

  1. # $Id: makefile.sco,v 4.6 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for SCO 3.2vx version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # Port courtesy of Robert Lewis <robertle@sco.COM>, 921217
  30. #
  31.  
  32. #includes symbol info for debugging 
  33. # DASHO=        -g
  34. #for normal build
  35. #DASHO=        -g
  36.  
  37. STDCFLAGS=    -Dsco -DPOSIX -DJOB_CONTROL -DMOUSE
  38. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  39.  
  40. # switches for library building
  41. LIBCMD=        ar
  42. LIBARGS=    ru
  43. RANLIB=        ranlib
  44.  
  45. # When using tinfo.c link with library tinfo.
  46. LIBS=        $(EXTRALIBES) -ltinfo -lc -lc_s
  47. # When using tcap.c link with library termcap.
  48. #LIBS=        $(EXTRALIBES) -ltermcap -lc -lc_s
  49.  
  50. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o composer.o \
  51.         display.o file.o fileio.o line.o osdep.o pico.o random.o \
  52.         region.o search.o spell.o tinfo.o window.o word.o
  53.  
  54. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c composer.c \
  55.         display.c file.c fileio.c line.c osdep.c pico.c random.c \
  56.         region.c search.c spell.c tinfo.c window.c word.c
  57.  
  58. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h osdep.h
  59.  
  60.  
  61. #
  62. # dependencies for the Unix versions of pico and libpico.a
  63. #
  64. all:        pico pilot
  65.  
  66. osdep.c:    os_unix.c
  67.         rm -f osdep.c
  68.         cp os_unix.c osdep.c
  69.  
  70. osdep.h:    os_unix.h
  71.         rm -f osdep.h
  72.         cp os_unix.h osdep.h
  73.  
  74. libpico.a:    osdep.c osdep.h $(OFILES)
  75.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  76. #        $(RANLIB) libpico.a
  77.  
  78. pico:        main.c libpico.a
  79.         $(CC) $(CFLAGS) main.c libpico.a $(LIBS) -o pico
  80.  
  81. pilot:        pilot.c libpico.a
  82.         $(CC) $(CFLAGS) pilot.c libpico.a $(LIBS) -o pilot
  83.  
  84. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  85.  
  86. $(OFILES):    $(HFILES)
  87.  
  88. clean:
  89.         rm -f *.a *.o *~ osdep.c osdep.h
  90.